package cn.ainit.bs.repList.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * RepViewTypeId entity. @author MyEclipse Persistence Tools
 */
@Embeddable

public class RepViewTypeId  implements java.io.Serializable {
	private String dsId;
	private String name;
	
	public RepViewTypeId() {
	}
	public RepViewTypeId(String dsId, String name) {
		this.dsId = dsId;
		this.name = name;
	}
	
	
	@Column(name="DS_ID", nullable=false, length=128)
	public String getDsId() {
		return this.dsId;
	}
	public void setDsId(String dsId) {
		this.dsId = dsId;
	}
	@Column(name="NAME", nullable=false, length=30)

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}




	public boolean equals(Object other) {
		if ( (this == other ) ) return true;
		if ( (other == null ) ) return false;
		if ( !(other instanceof RepViewTypeId) ) return false;
		RepViewTypeId castOther = ( RepViewTypeId ) other; 

		return ( (this.getDsId()==castOther.getDsId()) || ( this.getDsId()!=null && castOther.getDsId()!=null && this.getDsId().equals(castOther.getDsId()) ) )
		&& ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) );
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + ( getDsId() == null ? 0 : this.getDsId().hashCode() );
		result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
		return result;
	}   





}